import axios from '@/axios/request'

//注册
export function register(params) {
  return axios({
    url: 'api/register',
    method: 'POST',
    data: params
  })
}

//登录
export function login(params) {
  return axios({
    url: '/api/login',
    method: 'POST',
    data: params
  })
}

//获取用户列表
export function getUserList() {
  return axios({
    url: '/api/getUserList',
    method: 'POST',
  })
}

//删除用户
export function delUser(params) {
  return axios({
    url: '/api/delUser',
    method: 'POST',
    data: params
  })
}
